/* 全局样式 */
body {
    padding-top: 56px;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    color: #07689f !important;
}

/* 轮播图样式 */
.carousel-item {
    height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
}

/* 特色介绍卡片样式 */
.card {
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 风景胜地部分样式 */
.scenery-section {
    background-color: #f8f9fa;
}

/* 修改视差滚动头部样式 */
.parallax-header {
    background: url('../image/背景图.gif') center/cover fixed;
    padding: 150px 0;  /* 增加padding让视差效果更明显 */
    position: relative;
    margin-bottom: 50px;
    background-attachment: fixed;  /* 确保视差效果 */
    transform: translateZ(0);  /* 提高性能 */
    backface-visibility: hidden;  /* 防止闪烁 */
}

.parallax-header::before {  /* 添加渐变遮罩 */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.parallax-header .container {
    position: relative;
    z-index: 2;
}

.parallax-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.parallax-header .lead {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* 添加动画效果 */
@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.scenic-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.scenic-card:hover {
    transform: translateY(-10px);
}

.scenic-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.scenic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scenic-card:hover .scenic-img img {
    transform: scale(1.1);
}

.scenic-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    padding: 5px 15px;
    border-radius: 20px;
    color: #07689f;
    font-weight: bold;
    font-size: 0.9rem;
}

.scenic-content {
    padding: 20px;
}

.scenic-content h3 {
    color: #2d3436;
    margin-bottom: 10px;
    font-weight: bold;
}

.rating {
    color: #ffd700;
    margin-bottom: 15px;
}

.rating span {
    color: #2d3436;
    margin-left: 10px;
}

.scenic-features {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.scenic-features span {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #666;
}

.scenic-features i {
    margin-right: 5px;
    color: #07689f;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .parallax-header {
        padding: 100px 0;
        background-attachment: scroll;  /* 移动端禁用视差效果以提高性能 */
    }
    
    .parallax-header h2 {
        font-size: 2.5rem;
    }
    
    .parallax-header .lead {
        font-size: 1.2rem;
    }
    
    .scenic-card {
        margin-bottom: 20px;
    }
    
    .scenic-features {
        flex-wrap: wrap;
    }
}

/* 风景胜地页面样式 */
.scenery-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../image/背景图.gif') center/cover;
    padding: 120px 0 60px;
    margin-bottom: 0;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 20px auto;
    transition: all 0.3s ease;
}

.search-box.search-focus {
    transform: scale(1.02);
}

.search-box input {
    transition: all 0.3s ease;
}

.search-box input:focus {
    box-shadow: 0 0 15px rgba(7,104,159,0.2);
}

.search-box .btn {
    position: absolute;
    right: 5px;
    top: 5px;
}

.category-nav {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1020;
}

.category-nav .nav-link {
    color: #333;
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #07689f;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.category-nav .nav-link:hover::after {
    width: 100%;
}

.category-nav .nav-link.clicked {
    transform: scale(0.95);
}

.category-nav .nav-link.active {
    background-color: #07689f;
    color: white;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #07689f;
}

.scenic-detail-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.scenic-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.scenic-detail-img {
    position: relative;
    height: 400px;
}

.scenic-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.scenic-detail-img:hover img {
    transform: scale(1.05);
}

.season-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    padding: 5px 15px;
    border-radius: 20px;
    color: #07689f;
    transition: all 0.3s ease;
}

.season-tag:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,1);
}

.scenic-detail-content {
    padding: 30px;
}

.meta-info {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    color: #666;
}

.meta-info span i {
    margin-right: 5px;
    color: #07689f;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item.feature-hover {
    transform: translateY(-5px);
    background: #e8f4f8;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: #e8f4f8;
}

.feature-item i {
    font-size: 24px;
    color: #07689f;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2);
    color: #07689f;
}

.info-sidebar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.weather-widget {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.weather-info i {
    font-size: 40px;
    color: #ffd700;
    margin-bottom: 10px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.weather-info span {
    font-size: 24px;
    font-weight: bold;
}

.quick-tips ul {
    list-style: none;
    padding: 0;
}

.quick-tips li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 25px;
}

.quick-tips li:hover {
    padding-left: 30px;
    color: #07689f;
}

.quick-tips li i {
    color: #07689f;
    margin-right: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .meta-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .scenic-detail-img {
        height: 300px;
    }
    
    .scenic-detail-card:hover {
        transform: translateY(-5px);
    }
    
    .feature-item.feature-hover {
        transform: translateY(-3px);
    }
}

/* 动画效果样式 */
/* 导航栏滚动效果 */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 页面加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}